/* eslint-disable */
// 该文件由 OneAPI 自动生成，请勿手动修改！
import { request } from '@umijs/max';
// 订单


/** 列表 */
export async function userList(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/user/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 列表 */
export async function pointList(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/point/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 详情 */
export async function detail(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/user/info', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 修改 */
export async function update(
  body?: API.UserInfoVO,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/user/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 删除 */
export async function del(
  body?: any,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/user/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 发放兼职人员奖励 */
export async function rewardInsert(
  body?: API.UserInfoVO,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/reward/insert', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 兼职人员奖励列表 */
export async function rewardList(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/reward/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
/** 兼职上报记录 */
export async function partTimeInsert(
  body?: API.UserInfoVO,
  options?: { [key: string]: any },
) {
  return request<API.Result_UserInfo_>('/api/partTime/insert', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
/** 兼职上报记录列表 */
export async function partTimeList(
  params?:any,
  options?: { [key: string]: any },
) {
  return request<API.Result_PageInfo_UserInfo__>('/api/partTime/list', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
